package main

import (
    "flag"
    "fmt"
    "os"
)


func main() {
	var bookName string
	var argc = len(os.Args)
	if argc >= 2 {
		port := flag.Int("port", 6060, "run port")
		flag.StringVar(&bookName, "book", "三国演义", "book name")
		
		flag.Parse()
		fmt.Println("port:", *port)
		fmt.Println("bookName:", bookName)
	}
  
}



